<?php

use Illuminate\Database\Seeder;

class StuTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $list = array(
            ["name"=>"苹果","age"=>"11","class"=>"lamp111"],
            ["name"=>"香瓜","age"=>"22","class"=>"lamp121"],
            ["name"=>"西瓜","age"=>"33","class"=>"lamp211"],
            ["name"=>"北瓜","age"=>"44","class"=>"lamp222"]
        );

        foreach($list as $val){
            \DB::table('stu')->insert($val);
        } 
    }
}
